//
//  TopScrollView.h
//  kyMusicPlayer
//
//  Created by 翁科宇 on 2018/5/11.
//  Copyright © 2018年 翁科宇. All rights reserved.
// 首页顶部频道选择scrollView

#import <UIKit/UIKit.h>
@protocol TopScrollViewDelegate <NSObject>
@optional
- (void)showOrHiddenChannelsView:(UIButton *)btn;
- (void)chooseChannelWithIndex:(NSInteger)index;
@end


@interface TopScrollView : UIView
@property(nonatomic, strong)NSArray *channelNameArray;
@property(nonatomic, strong)UIScrollView *scrollView;
@property(nonatomic, weak)id <TopScrollViewDelegate> delegate;

- (instancetype)initWithFrame:(CGRect)frame;
- (void)addChannelButtonWithChannelName:(NSString *)channelName;
- (void)selectChannelButtonWithIndex:(NSInteger)index;
- (void)deleteChannelButtonWithIndex:(NSInteger)index;


@end
